<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
	<title>动漫类型列表</title>
	<link rel="stylesheet" type="text/css" href="./bootstrap/css/bootstrap.min.css">
</head>
<body>
<?php
require "Admin/View/admin/adminlogin.php";

?>
<td><h2><a href="admin.php?c=type&m=regtype">动漫类型添加</a></h2></td>
<center><h2>系统共动漫类型(<?php echo count($data['cartoontype']); ?>个)</h2></center>
 <form action="admin.php?c=type&m=searchtype" method="post" name="key" id="key" align="right" >
      <table width="90%">
          <td >请输入动漫类型名称：
          <input name="key" type="text" id="key" >
          <input name="submit" type="submit" value="搜索" /></td></table>
        </form>
<div class="col-md-2"></div>
<div class="col-md-12">
<table class="table table-hover">
<tr>
<th>类型编号</th>
<th>类型名</th>
<th>操作</th>
</tr>
<?php
foreach($data['cartoontype'] as $row){
	?>
	<tr>
	<td><?php echo $row['tid'];?></td>
	<td><?php echo $row['typename'];?></td>
	<td><a href="admin.php?c=type&m=edittype&tid=<?php echo $row['tid'];?>">修改</a> 
    <a href="admin.php?c=type&m=deltype&tid=<?php echo $row['tid'];?>">删除</a></td>
    </tr>
    <?php
}
    ?>
     </div>
</table>
<?php
//var_dump($data['cartoons']);
?>
</body>
</html>